{extend name="base"/}
{block name="resources"}
{/block}
{block name="main"}
<div class="layui-form ns-form">
    <div class="layui-form-item">
        <label class="layui-form-label">授权状态：</label>
        <div class="layui-input-block">
            <p class="ns-input-text ns-len-mid">{$data['auth_status'] ? '已授权' : '未授权'}</p>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">授权版本：</label>
        <div class="layui-input-block">
            <p class="ns-input-text ns-len-mid">{$data['devolution_version'] ?: '--'}</p>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">授权域名：</label>
        <div class="layui-input-block">
            <p class="ns-input-text ns-len-mid">{$data['dimain'] ?: '--'}</p>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">服务时间：</label>
        <div class="layui-input-inline">
            <p class="ns-input-text">{:isset($data['expire_date']) ? ($data['expire_date'] > 0 ? (date("Y-m-d H:i:s", $data['expire_date'])) : '永久') : '--'}</p>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">当前版本：</label>
        <div class="layui-input-inline">
            <p class="ns-input-text">V{$data['current_version']  ?: '--'}</p>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">最新版本：</label>
        <div class="layui-input-inline">
            <p class="ns-input-text">V{$data['last_version'] ?: '--'}</p>
        </div>
        {if condition="!empty($data['last_version']) && $data['current_version_release'] < $data['last_version_release']"}
        <a href="{:url('admin/system/version', array('version_release' => $data['last_version_release']))}"><span class="ns-input-text ns-text-color">在线升级</span></a>
        {/if}
        {if condition="!empty($data['last_version']) && $data['current_version_release'] = $data['last_version_release']"}
        <span class="ns-input-text">已是最新版本</span>
        {/if}
    </div>
</div>
{/block}
{block name="script"}
{/block}